package com.tl.khadmin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.ProductType;
import com.tl.khadmin.bean.dto.ProductTypeTreeDto;

public interface ProductTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ProductType record);

    int insertSelective(ProductType record);

    ProductType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ProductType record);

    int updateByPrimaryKey(ProductType record);

	List<ProductType> listProductType(Map<String, Object> param);

	List<ProductTypeTreeDto> listProductTypeTreeDto(Map<String, Object> param);

	Integer queryIdByTypeName(@Param("typeName") String typeName);
	
	Integer queryIdByTypeNameAndId(@Param("typeName")String typeName, @Param("id") Integer id);

	int  queryByHaoLiBeiParentId(@Param("parentId") int parentId);


	
	
}